﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Webcrawler
{
	public class Link
	{
		private string name;
		private string url;
		private int linkLevel;
		private List<Link> listLink = new List<Link>();
		private Link parent;

		public Link(string url, string name)
		{
			this.name = name;
			this.url = url;

		}

		public Link(string url, string name, Link parent)
		{
			this.url = url;
			this.name = name;
			this.parent = parent;
			
		}

		public Link()
		{

		}
	   

		public List<Link> LinkList
		{
			get { return listLink;}
			set { listLink = value;}
		}

		
		public Link Parent
		{
			get { return parent; }
			set { parent = value; }
		}
		


		public int LinkLevel
		{
			get { return linkLevel; }
			set { linkLevel = value; }
		}

		public string Url
		{
			get { return url; }
			set { url = value; }
		}

		public string Name
		{
			get { return name; }
			set { name = value; }
		}
	}
}
